package com.liuyanzhao.blog.entity;

import java.util.Date;

public class Article {
    private Integer articleId;

    private Integer articleUserId;

    private String articleTitle;

    private Integer articleParentCategoryId;

    private Integer articleChildCategoryId;

    private String articleTagIds;

    private Integer articleViewCount;

    private Integer articleCommentCount;

    private Integer articleLikeCount;

    private Date articlePostTime;

    private Date articleUpdateTime;

    private Integer articleIsComment;

    private Integer articleStatus;

    private Integer articleOrder;

    private String articleContent;

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public Integer getArticleUserId() {
        return articleUserId;
    }

    public void setArticleUserId(Integer articleUserId) {
        this.articleUserId = articleUserId;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle == null ? null : articleTitle.trim();
    }

    public Integer getArticleParentCategoryId() {
        return articleParentCategoryId;
    }

    public void setArticleParentCategoryId(Integer articleParentCategoryId) {
        this.articleParentCategoryId = articleParentCategoryId;
    }

    public Integer getArticleChildCategoryId() {
        return articleChildCategoryId;
    }

    public void setArticleChildCategoryId(Integer articleChildCategoryId) {
        this.articleChildCategoryId = articleChildCategoryId;
    }

    public String getArticleTagIds() {
        return articleTagIds;
    }

    public void setArticleTagIds(String articleTagIds) {
        this.articleTagIds = articleTagIds == null ? null : articleTagIds.trim();
    }

    public Integer getArticleViewCount() {
        return articleViewCount;
    }

    public void setArticleViewCount(Integer articleViewCount) {
        this.articleViewCount = articleViewCount;
    }

    public Integer getArticleCommentCount() {
        return articleCommentCount;
    }

    public void setArticleCommentCount(Integer articleCommentCount) {
        this.articleCommentCount = articleCommentCount;
    }

    public Integer getArticleLikeCount() {
        return articleLikeCount;
    }

    public void setArticleLikeCount(Integer articleLikeCount) {
        this.articleLikeCount = articleLikeCount;
    }

    public Date getArticlePostTime() {
        return articlePostTime;
    }

    public void setArticlePostTime(Date articlePostTime) {
        this.articlePostTime = articlePostTime;
    }

    public Date getArticleUpdateTime() {
        return articleUpdateTime;
    }

    public void setArticleUpdateTime(Date articleUpdateTime) {
        this.articleUpdateTime = articleUpdateTime;
    }

    public Integer getArticleIsComment() {
        return articleIsComment;
    }

    public void setArticleIsComment(Integer articleIsComment) {
        this.articleIsComment = articleIsComment;
    }

    public Integer getArticleStatus() {
        return articleStatus;
    }

    public void setArticleStatus(Integer articleStatus) {
        this.articleStatus = articleStatus;
    }

    public Integer getArticleOrder() {
        return articleOrder;
    }

    public void setArticleOrder(Integer articleOrder) {
        this.articleOrder = articleOrder;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent == null ? null : articleContent.trim();
    }

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((articleChildCategoryId == null) ? 0 : articleChildCategoryId.hashCode());
		result = prime * result + ((articleCommentCount == null) ? 0 : articleCommentCount.hashCode());
		result = prime * result + ((articleContent == null) ? 0 : articleContent.hashCode());
		result = prime * result + ((articleId == null) ? 0 : articleId.hashCode());
		result = prime * result + ((articleIsComment == null) ? 0 : articleIsComment.hashCode());
		result = prime * result + ((articleLikeCount == null) ? 0 : articleLikeCount.hashCode());
		result = prime * result + ((articleOrder == null) ? 0 : articleOrder.hashCode());
		result = prime * result + ((articleParentCategoryId == null) ? 0 : articleParentCategoryId.hashCode());
		result = prime * result + ((articlePostTime == null) ? 0 : articlePostTime.hashCode());
		result = prime * result + ((articleStatus == null) ? 0 : articleStatus.hashCode());
		result = prime * result + ((articleTagIds == null) ? 0 : articleTagIds.hashCode());
		result = prime * result + ((articleTitle == null) ? 0 : articleTitle.hashCode());
		result = prime * result + ((articleUpdateTime == null) ? 0 : articleUpdateTime.hashCode());
		result = prime * result + ((articleUserId == null) ? 0 : articleUserId.hashCode());
		result = prime * result + ((articleViewCount == null) ? 0 : articleViewCount.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Article other = (Article) obj;
		if (articleChildCategoryId == null) {
			if (other.articleChildCategoryId != null)
				return false;
		} else if (!articleChildCategoryId.equals(other.articleChildCategoryId))
			return false;
		if (articleCommentCount == null) {
			if (other.articleCommentCount != null)
				return false;
		} else if (!articleCommentCount.equals(other.articleCommentCount))
			return false;
		if (articleContent == null) {
			if (other.articleContent != null)
				return false;
		} else if (!articleContent.equals(other.articleContent))
			return false;
		if (articleId == null) {
			if (other.articleId != null)
				return false;
		} else if (!articleId.equals(other.articleId))
			return false;
		if (articleIsComment == null) {
			if (other.articleIsComment != null)
				return false;
		} else if (!articleIsComment.equals(other.articleIsComment))
			return false;
		if (articleLikeCount == null) {
			if (other.articleLikeCount != null)
				return false;
		} else if (!articleLikeCount.equals(other.articleLikeCount))
			return false;
		if (articleOrder == null) {
			if (other.articleOrder != null)
				return false;
		} else if (!articleOrder.equals(other.articleOrder))
			return false;
		if (articleParentCategoryId == null) {
			if (other.articleParentCategoryId != null)
				return false;
		} else if (!articleParentCategoryId.equals(other.articleParentCategoryId))
			return false;
		if (articlePostTime == null) {
			if (other.articlePostTime != null)
				return false;
		} else if (!articlePostTime.equals(other.articlePostTime))
			return false;
		if (articleStatus == null) {
			if (other.articleStatus != null)
				return false;
		} else if (!articleStatus.equals(other.articleStatus))
			return false;
		if (articleTagIds == null) {
			if (other.articleTagIds != null)
				return false;
		} else if (!articleTagIds.equals(other.articleTagIds))
			return false;
		if (articleTitle == null) {
			if (other.articleTitle != null)
				return false;
		} else if (!articleTitle.equals(other.articleTitle))
			return false;
		if (articleUpdateTime == null) {
			if (other.articleUpdateTime != null)
				return false;
		} else if (!articleUpdateTime.equals(other.articleUpdateTime))
			return false;
		if (articleUserId == null) {
			if (other.articleUserId != null)
				return false;
		} else if (!articleUserId.equals(other.articleUserId))
			return false;
		if (articleViewCount == null) {
			if (other.articleViewCount != null)
				return false;
		} else if (!articleViewCount.equals(other.articleViewCount))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Article [articleId=" + articleId + ", articleUserId=" + articleUserId + ", articleTitle=" + articleTitle
				+ ", articleParentCategoryId=" + articleParentCategoryId + ", articleChildCategoryId="
				+ articleChildCategoryId + ", articleTagIds=" + articleTagIds + ", articleViewCount=" + articleViewCount
				+ ", articleCommentCount=" + articleCommentCount + ", articleLikeCount=" + articleLikeCount
				+ ", articlePostTime=" + articlePostTime + ", articleUpdateTime=" + articleUpdateTime
				+ ", articleIsComment=" + articleIsComment + ", articleStatus=" + articleStatus + ", articleOrder="
				+ articleOrder + ", articleContent=" + articleContent + "]";
	}
    
    
    
    
    
}